package cn.wizzer.app.task.commons.ext.quartz.job;

import cn.wizzer.app.crown.modules.services.CrownConfigService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @author
 */
@IocBean
public class CrownJobAccountCheck implements Job {
    @Inject
    @Reference(retries = 0, timeout = 500000)
    private CrownConfigService crownConfigService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        crownConfigService.accountCheck();
    }
}
